#include "include/bt1.h"

//-------------------------------------------------------------------------------------
bt1::bt1(void) 
{
}
//-------------------------------------------------------------------------------------
bt1::~bt1(void)
{
}
//-------------------------------------------------------------------------------------
void bt1::createScene(void)
 {
     // Set the scene's ambient light
    mSceneMgr -> setAmbientLight (Ogre::ColourValue(0.5f, 0.5f, 0.5f));

    //---------------------------- the head ----------
    // Create an entity
    Ogre::Entity* ogreHead = mSceneMgr -> createEntity ("Head", "ogrehead.mesh");

    // Create a SceneNode and attach the Entity to it
    Ogre::SceneNode* headNode = mSceneMgr -> getRootSceneNode () -> createChildSceneNode ("HeadNode");
    headNode -> attachObject (ogreHead);
    //------------------------------------------------ 
    Ogre::Entity* theHero = mSceneMgr -> createEntity ("hero", "hero.mesh");
    Ogre::SceneNode* heroNode = mSceneMgr -> getRootSceneNode () -> createChildSceneNode ("heroNode", Ogre::Vector3(92.0f, 0.0f, 10.0f));
    heroNode -> attachObject (theHero);
    
    Ogre::Entity* theHero1 = mSceneMgr -> createEntity ("hero1", "hero.mesh");
    Ogre::SceneNode* heroNode1 = mSceneMgr -> getRootSceneNode () -> createChildSceneNode ("heroNode1", Ogre::Vector3(122.0f, 0.0f, 50.0f));
    heroNode1 -> attachObject (theHero1);
    
    //translate    
    heroNode1 -> translate (Ogre::Vector3(30.0f, 9.0f, 70.0f));
    


    // Create a light and set its position
    Ogre::Light* light = mSceneMgr -> createLight ("MainLight");
    light -> setPosition (20.0f, 80.0f, 50.0f); 
 }
//------------------------------------------------------------------------------------


